import api from "@/api/axiosApi"

const farm = {
    SearchFarmAll(url,params){
        return api.get(url,params)
    },
	FarmSort(url,params){
		return api.get(url,params)
	},
	SearchFarm(url,params){
		return api.get(url,params)
	},
	AddFarm(url,params){
		return api.post(url,params)
	},
	editorFarm(url,params){
		return api.put(url,params)
	},
	deleteFarm(url,params){
	    return api.del(url,params)
	},
	DisInfoFarm(url,params){//查询单个商品信息
		return api.get(url,params)
	},
	SortSearchFarm(url,params){//通过分类查询所有当前分类的内容
		return api.get(url,params)
	},
	deleteSpecif(url,params){//删除某个农产品规格
		return api.del(url,params)
	},
	/**
	 * 用户收藏农产品
	 */
	postCollectFarm(url,params){
		return api.post(url,params)
	},
	/**
	 * 未登录用户查看农产品信息
	 */
	NotLogInInfoFarm(url,params){
		return api.get(url,params)
	},
	/**
	 *热门农产品显示
	 */
	getTopfarmData(url,params){
		return api.get(url,params)
	},
	getMyCollects(url,params){
		return api.get(url,params)
	}
}

export default farm;